package com.cskaoyan.exception;

import com.cskaoyan.bean.vo.BaseRespVo;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * @author break_a_leg
 * @description
 * @date 2021年10月25日 1:49
 */
@ControllerAdvice
public class OrderControllerExceptionAdvice {

    @ExceptionHandler(OrderSubmitException.class)
    public BaseRespVo orderSubmitException() {
        return BaseRespVo.fail();
    }
}
